<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function showData([a,b,c]) {
            let [arg1, arg2, arg3] = [a,b,c];
            return a+b+c
        }
        console.log(showData([1,2,3]));

        // [[1, 2], [3, 4]].map(([a, b]) => a + b); //es6的缩写
        [[1, 2], [3, 4], [,6]].map(function([a,b]) {
            console.log(a);
            console.log(b);
            return a+b
        })
    </script>
</body>
</html>